<?php

/**
 * GravatarWidget class
 *
 * @author Julot
 * @since Sunday, May 27, 2012. 05:07 PM
 */
class GravatarWidget extends EGravatarWidget {

	public function run() {
		if (strpos(Yii::app()->request->hostInfo, 'localhost') !== false) {
			echo CHtml::image($this->default, $this->htmlOptions['alt'],
				$this->htmlOptions);
		} else {
			parent::run();
		}
	}

}
